package com.shiguiwu.springmybatis.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description: aaa
 * @author: stone
 * @date: Created by 2020/11/10 21:00
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.util java
 */
public class TestIoc {


    //测试null
    public static void main(String[] args) {

        ApplicationContext ioc = new ClassPathXmlApplicationContext("spring/ioc.xml");

        ApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        Person person = (Person) ioc.getBean("person01");
        System.out.println(person);

    }
}
